﻿<%@ Page Title="" Language="C#" MasterPageFile="~/en-us/Site.Master" AutoEventWireup="true" CodeBehind="GuestBook.aspx.cs" Inherits="Web_HengliSeed.en_us.GuestBook" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
 <script type="text/javascript">
     function check() {

     }
 </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<form id="Form1" runat="server">
    <div id="content_main">
        <h1>Guestbook</h1>
        <br />
        <div class="list_results">
            <div>
                <table style="width:530px">
                    <tr>
                        <td style="width:120px; text-align:right;"><font color="red">*</font>Name:</td>
                        <td><asp:TextBox runat="server" Height="20px" Width="120px" ID="txtUserName" />
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                                ControlToValidate="txtUserName" ErrorMessage="The user name can not be empty"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td style="width:120px;text-align:right;" >Tel:</td>
                        <td><asp:TextBox runat="server" Height="20px" Width="120px" ID="txtPhone" /></td>
                    </tr>
                    <tr>
                        <td style="width:120px;text-align:right;" >Email:</td>
                        <td><asp:TextBox runat="server" Height="20px" Width="120px" ID="txtEmail" /></td>
                    </tr>
                     <tr>
                        <td style="width:120px;text-align:right;" ><font color="red">*</font>Content:</td>
                        <td><asp:TextBox runat="server" ID="txtContent" TextMode="MultiLine" Width="342px" 
                                MaxLength="200" Rows="5" />
                            <br />
                        </td>
                    </tr>
                     <tr>
                        <td style="width:120px;text-align:right;" >&nbsp;</td>
                        <td>
                             <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                                ControlToValidate="txtContent" ErrorMessage="The content can not be empty"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                     <tr>
                        <td style="width:120px;text-align:right;" >&nbsp;</td>
                        <td>
                            <asp:TextBox runat="server" Height="20px" Width="60px" ID="txtCode" />
                            <img id="imgCode" alt="看不清，请点击我！" src="../VateImage.aspx" mce_src="../VateImage.aspx"    
                  style="cursor: hand; width: 76px; height: 20px" onclick="this.src=this.src+'?'"  />
                  <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                                ControlToValidate="txtCode" ErrorMessage="The verification code can not be empty"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td>
                        </td>
                        <td style=" height:50px;">
                        <div>
                            <asp:Button runat="server" ID="btnSubmit" Text="Send" Width="70px" Height="20px" 
                                onclick="btnSubmit_Click" />
                            </div>
                        </td>
                    </tr>
                </table>
            </div>
            <ul style=" display:none">
                <asp:Repeater runat="server" ID="rptData">
                    <ItemTemplate>
                        <li>
                            <div style="border-bottom: 1px dotted #808080">
                            <%#Eval("T_Name")%>(<%#DateTime.Parse(Eval("T_DateTime").ToString()).ToString("yyyy-MM-dd HH:mm")%>)
                            <br />
                            <%#Eval("T_Content") %>
                            </div>
                        </li>
                        <hr/>
                    </ItemTemplate>
                </asp:Repeater>
            </ul>
            <div style=" display:none">
                <asp:Label runat="server" ID="PageMes"></asp:Label>
                <asp:LinkButton ID="LBHome" runat="server" CssClass="pageBtn" OnClick="LBHome_Click">[First]</asp:LinkButton>
                <asp:LinkButton ID="LBUp" runat="server" CssClass="pageBtn" OnClick="LBUp_Click">[Prev]</asp:LinkButton>
                <asp:LinkButton ID="LBNext" runat="server" CssClass="pageBtn" OnClick="LBNext_Click">[Next]</asp:LinkButton>
                <asp:LinkButton ID="LBEnd" runat="server" CssClass="pageBtn" OnClick="LBEnd_Click">[Last]</asp:LinkButton>
            </div>
        </div>
        <div id="content_secondary" style="">
            <div id="nav_page">
                <div id="sub-nav" class="gradient_1">
                    <ul>
                        <%--<li class='active'><a href='#'>服务中心</a>
                            <ul>
                                <li><a href='Information.aspx?action=service'><strong>客服中心</strong></a></li>
                                <li><a href='Guestbook.aspx'><strong>在线留言</strong></a></li>
                            </ul></li>--%>
                    </ul>
                </div>
            </div>
        </div>
    </div>
    <asp:HiddenField ID="HNowPage" runat="server" Value="1" />
    <asp:HiddenField ID="HPageSize" runat="server" Value="10" />
    <asp:HiddenField ID="HAllPage" runat="server" Value="0" />
    </form>
</asp:Content>
